package com.example.demo.service;

import com.example.demo.mapper.CustomerMapper;
import com.example.demo.model.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类注释
 *
 * @author yangzhengrong
 * @version 1.0.0 createTime: 2017/11/21 15:36
 */
@Service
public class CustomerService {

    @Autowired
    private CustomerMapper customerMapper;

    public List<Customer> queryAllCustomer(){
        return customerMapper.selectAll();
    }
}
